const access_key = 'Access-Token';
const user_info_key = "userInfo";
const menus_key = "menus";

export const getAccessToken = () => {
    return window.sessionStorage.getItem(access_key);
}
export const setAccessToken = (token) => {
    window.sessionStorage.setItem(access_key,token);
}
export const getUserInfo = () => {
    return window.sessionStorage.getItem(user_info_key);
}
export const setUserInfo = (user) => {
    window.sessionStorage.setItem(user_info_key,user);
}
export const removeAccessToken= ()=>{
    window.sessionStorage.removeItem(access_key);
}
export const removeUserInfo= ()=>{
    window.sessionStorage.removeItem(user_info_key)
}

export const getMenus = ()=>{
    return window.sessionStorage.getItem(menus_key);
}

export const setMenus = (menus) =>{
    window.sessionStorage.setItem(menus_key,menus);
}

export const removeMenus = () => {
    window.sessionStorage.removeItem(menus_key);
}
